package com.fhz.main.ui.home

import androidx.lifecycle.LiveData
import com.fhz.common.entity.MeiNvEntity
import com.fhz.loginmvvm.callback.ApiResponse
import com.fhz.main.api.MeiNvApi
import com.fhz.mvvm.api.YaoServiceApi
import com.fhz.mvvm.entity.UserEntity
import javax.inject.Inject

/**
 * 时间:2023/4/12
 * @author Mr.Feng
 * 简述: 网络请求
 */
class HomeRemoteDataSource @Inject constructor(private val serviceApi: MeiNvApi){
    //从服务器请数据
    fun getMeiNv(type:String,page:Int,size:Int) : LiveData<ApiResponse<MeiNvEntity>> {
        return serviceApi.getMeiNv(type,page,size)
    }

}